import React from 'react'
import { Button, Pagination } from 'antd';

interface Props {

}

const SearchPagination = (props: Props) => {
    const itemRender = (current: number, type: string, element: React.ReactNode) => {
        if (type === 'prev') {
            return <Button>上一页</Button>;
        }
        if (type === 'next') {
            return <Button>下一页</Button>
        }
        return element;
    }
    const onChange = (page: number, pageSize: number) => {

    }
    return (
        <div className='search-pagination'>
            <Pagination itemRender={itemRender} onChange={onChange} total={1000} showSizeChanger={false}></Pagination>
        </div>
    )
}

export default SearchPagination;
